package org.sam.swing;

import java.awt.Component;
import java.awt.LayoutManager;

import org.jdesktop.swingx.JXPanel;

/**
 * 系统扩展的panel对象
 * 
 * @author sam
 *
 */
public class JSPanel extends JXPanel implements ComponentSearch {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2261258960484260884L;
	
	/**
     * Creates a new <code>JXPanel</code> with a double buffer
     * and a flow layout.
     */
    public JSPanel() {
    }
    
    /**
     * Creates a new <code>JXPanel</code> with <code>FlowLayout</code>
     * and the specified buffering strategy.
     * If <code>isDoubleBuffered</code> is true, the <code>JXPanel</code>
     * will use a double buffer.
     *
     * @param isDoubleBuffered  a boolean, true for double-buffering, which
     *        uses additional memory space to achieve fast, flicker-free 
     *        updates
     */
    public JSPanel(boolean isDoubleBuffered) {
        super(isDoubleBuffered);
    }
    
    /**
     * Create a new buffered JXPanel with the specified layout manager
     *
     * @param layout  the LayoutManager to use
     */
    public JSPanel(LayoutManager layout) {
        super(layout);
    }
    
    /**
     * Creates a new JXPanel with the specified layout manager and buffering
     * strategy.
     *
     * @param layout  the LayoutManager to use
     * @param isDoubleBuffered  a boolean, true for double-buffering, which
     *        uses additional memory space to achieve fast, flicker-free 
     *        updates
     */
    public JSPanel(LayoutManager layout, boolean isDoubleBuffered) {
        super(layout, isDoubleBuffered);
    }

	/**
	 * 获取当前对象的所有控件
	 */
	@Override
	public Component[] getAWTComponents() {
		return this.getComponents();
	}
	
}
